home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / italia / atapipnp.lha / atapi_pnp / Install.Deutsch < prev    next >
Text File  |  1996-01-16  |  16KB  |  594 lines

  1. ; ************************************************
  2. ; *
  3. ; * $VER: Install-ATAPI PnP v1.00 (07.09.95)
  4. ; *
  5. ; * Installation for Atapi Package v 1.00
  6. ; *
  7. ; * Copyright © 1995 by Georg Campana
  8. ; *
  9. ; *    -------   G E R M A N    SCRIPT    --------
  10. ; *
  11. ; ************************************************
  12.  
  13. ;/// Variabili
  14. ; ****************************
  15. ;       Variabili
  16. ; ****************************
  17. ;
  18. (set DemoVersion        1) ; Demo Version
  19. (set ProductName        "ATAPI PnP"  )  ; product name
  20. (set ProductBaseName    "Atapi PnP")                    ; product base name
  21. (set VersionNum         "1.00 ")                     ; product version number
  22.  
  23. (set OSVersion          (/ (getversion) 65536))
  24. (set PctDone            0)
  25.  
  26. (set CPUOpts            0)    ; 0=68000,68010; 1=68020,68030,68040
  27.  
  28. (makeassign "CDPLUSPLUS" "" (safe))
  29.  
  30. (set Disk1Name                  "CDPLUSPLUS:")
  31.  
  32. (set MemSpace 1024)   ; 1K minimo di spazio necessario su disco
  33.  
  34. ;///
  35.  
  36. ;/// Proc setPkgOPts
  37. (procedure setPkgOpts
  38. ;
  39. ; ****************************
  40. ; * Wich Parts
  41. ; ****************************
  42. ;
  43.   (
  44.         (set PkgOpts
  45.                 (askoptions
  46.                         (prompt
  47.                            "Suche aus was Du vom Package"
  48.                            (" %s installieren willst" ProductName)
  49.                         )
  50.                         (help
  51.                                 "Hier kannst Du aussuchen welche Teile (Modules) Du vom"
  52.                                 (" Package %s installieren willst.\n" ProductName)
  53.                                 "\n"
  54.                                 "*** Atapi Device Driver\n"
  55.                                 "Hiermit wird der wichtige Device-Treiber"
  56.                                 " (cd.device ) ins Verzeichnis Devs: kopiert (Fundamental)\n"
  57.                                 "\n"
  58.                                 "*** CDplusplusFS\n"
  59.                                 "Mit dieser Option wird das spezielle Filesystem"
  60.                                 " der CD++ ins Verzeichnis L: kopiert (ratbar).\n"
  61.                                 "\n"
  62.                                 "*** MAP-Mini Atapi Player\n"
  63.                                 "Mit dieser Option wird der Mini Player"
  64.                                 " für CD-Audio ins Verzeichnis Utilities kopiert.\n"
  65.                                 "\n"
  66.                                 "*** TRKDownLoad Track-Downloader\n"
  67.                                 "Mit dieser Option wird das Program TRKDownload"
  68.                                 " (fürs Download von CD-Spuren) in Utilities kopiert.\n"
  69.                                 "\n"
  70.                                 "*** PlayCDXL\n"
  71.                                 "Mit dieser Option wird PlayCDXL ( ein Program"
  72.                                 " fürs Abspielen von CDXL Files ) in Utilities kopiert.\n"
  73.                                 "\n"
  74.                                 @askoptions-help
  75.                         )
  76.                         (choices
  77.                                 ; bit position 0 -- todo & 1
  78.                                 ;
  79.                                 "Atapi Device Driver          (16 Kbytes)"
  80.  
  81.                                 ; bit position 1 -- todo & 2
  82.                                 ;
  83.                                 "CDplusplusFS - CD Filesystem (23 Kbytes)"
  84.  
  85.                                 ; bit position 2 -- todo & 4
  86.                                 ;
  87.                                 "MAP- Mini Atapi Player       ( 9 Kbytes)"
  88.  
  89.                                 ; bit position 3 -- todo & 8
  90.                                 ;
  91.                                 "TRKDownLoad- Track DownLoader(15 Kbytes)"
  92.  
  93.                                 ; bit position 4 -- todo & 16
  94.                                 ;
  95.                                 "PlayCDXL - Player Film CDXL  (30 Kbytes)"
  96.  
  97.                         )
  98.                 )
  99.         )
  100.   )
  101. )
  102. ;///
  103.  
  104. ;/// Proc setDirPath
  105.  
  106. (procedure setDirPath
  107. ;
  108. ; ****************************
  109. ; * Ask the user for a directory name.
  110. ; ****************************
  111. ;
  112. ; these variables must be defined before calling this procedure:
  113. ;    DirPath
  114. ;
  115. ; this procedure returns the selected directory in DirPath
  116. ;
  117.    (
  118.  
  119.        (set DirPath
  120.                (askdir
  121.                        (prompt ("Wo soll das Package installiert werden     ( Normalerweise SYS: )" )
  122.  
  123.                        )
  124.                        (help   "Atapi Plug'n Play wird in das ausgesuchte Verzeichnis"
  125.                                " Installiert.\n"
  126.                                "Wenn Du es in eine Diskette installieren möchtest"
  127.                                " dann stecke diese in den Drive und suche Sie aus"
  128.                                " der Liste aus.\n"
  129.                                "\n"
  130.                                @askdir-help
  131.                        )
  132.                        (disk)
  133.                        (default "SYS:")
  134.                )
  135.        )
  136.  
  137.  
  138.  
  139.    )
  140. )
  141. ;///
  142.  
  143. ;/// Proc AskFsIcon
  144. ;
  145. ;
  146. (procedure AskFsIcon
  147. ;
  148. ; This procedure ask of wich cd Icon you want to install with wich Name
  149. ; It requires initialization of variables:
  150. ;
  151. ; In "DefaultIcon" ci deve essere quella accesa di default
  152. ; Ridà in "IconChoose" qual icona
  153. ; 0 nessuna - 1 AmiCDFilesystem
  154. ; 2 AmiCDFS - 3 CDfilesystem - 4 CDplusplusFS
  155. ;
  156.   (
  157.     (set IconChoose
  158.      
  159.            (askchoice
  160.                 (prompt "Suche aus,für welches CD-Filesystem du ein Piktogram installieren möchtest")
  161.                 (help
  162.                         "Hier kannst du aussuchen für welches Dateinsystem"
  163.                         " Atapi Plug'n Play Installiert werden soll.\n"
  164.                         "Hast Du schon CDplusplusFS installiert dann suche am besten"
  165.                         " diese Möglichkeit aus.\n"
  166.                         "\n"
  167.                         "Sollte Dein CD-filesystem nicht in der Liste"
  168.                         " vorkommen dann suche -Keines- aus , und"
  169.                         " modifizier später die Tooltypes im"
  170.                         " Piktogram :\n"
  171.                         "Device wird\nDevice=cd.device\n"
  172.                         "und Unit wird\nUnit=0\n\n"
  173.                         @askchoice-help
  174.                 )
  175.                 (choices
  176.                         "-Keines"
  177.                         "-AmiCDFileSystem - by Nicola Salmoria"
  178.                         "-cdrom-handler   - by Frank Munkert"
  179.                         "-CDFileSystem    - by CBM Commodore"
  180.                         "-CDplusplusFS    - by CD++"
  181.                 )
  182.                 (default DefaultIcon)
  183.            )
  184.     )
  185.   )
  186. )
  187. ;///
  188.  
  189. ;/// Proc GetDevName
  190. ;
  191. ;  in DevName si ritrova il nome da usare per l'icona
  192. ;
  193.  
  194.  
  195. (procedure GetDevName
  196.    
  197.    (
  198.      (set DevName
  199.            (askstring
  200.                      (prompt "Schreibe hier den Namen für das installierte CD-Laufwerk ohne den Doppelpunkt\nz.B. CD0")
  201.                      (help
  202.                              "Der ausgesuchte Name wird der"
  203.                              "  Name des Devices\n"
  204.                              "Es ist ratbar keinen langen Namen"
  205.                              " auszusucheni\n"
  206.                              "\nAm besten CD0 oder CD1 usw."
  207.                              " weil viele Programe diesen"
  208.                              " Namen suchen\n"
  209.                      )
  210.                      (default "CD0")
  211.            )
  212.      )
  213.    )
  214. )
  215. ;///
  216.  
  217. ;/// Proc AskAutoMount
  218. ;
  219. ;
  220. (procedure AskAutoMount
  221. ;
  222. ; Chiede se l'icona deve essere inserita nel devs Dosdrivers o nel
  223. ; storage dosdrivers
  224. ;
  225.   (
  226.     (set AutoMount
  227.      
  228.            (askbool
  229.                 (prompt "Möchtest Du daß das Laufwerk bei jedem Computerstart"
  230.                         " automatisch angeschaltet wird (Mount) ,"
  231.                         " statt manuell per-Mauseklick ?"
  232.                 )
  233.                 (help
  234.                         "Wenn Du positiv antwortest wird das Piktogram"
  235.                         " des Devices in das Verzeichnis:\n"
  236.                         "Devs:Dosdrivers kopiert\n"
  237.                         "Bei jedem Start wird so auch automatisch das"
  238.                         " CD-Laufwerk gestarted\n\n"
  239.                         "Ansonsten wird es in: Storage:DosDrivers\n"
  240.                         " kopiert , und Du mußt per-Hand auf das"
  241.                         " Piktogram klicken um daß Laufwerk zu -Mounten-"
  242.                 )
  243.                 (choices
  244.                         "Automatisch beim Start"
  245.                         "Nein , manuell"
  246.                 )
  247.                 (default 1)
  248.            )
  249.     )
  250.   )
  251. )
  252. ;///
  253.  
  254.  
  255. ; *************************************************************************
  256. ; *                         ACTUAL START OF SCRIPT
  257. ; *
  258. ; * Ask all questions for the user now, do all of the work later.
  259. ; *************************************************************************
  260. ;
  261. ;/// MAIN SCRIPT
  262. (onerror
  263.  
  264. )
  265. ; ****************************
  266. ;  Check for OS Version
  267. ; ****************************
  268.  
  269. (if (= DemoVersion 1)
  270.     (message "\n" "\n"
  271.              "Achtung: Das hier ist eine DEMO Version\n"
  272.              "vom Program  Atapi PnP !\n"
  273.              "DU KANNST ES JEDEM KOMPLETT\n"
  274.              "WEITERGEBEN (ausser den Crakker)" "\n"
  275.              "\n" "\n" "\n"
  276.              "Atapi Plug'n Play is Copyright by \n"
  277.              "Georg Campana & Marco Campinoti ©1994"
  278.              (help "Wenn Du die registrierte Version erhalten möchtest dann lies das Handbuch oder rufe 0039/565/850621 an")
  279.     )
  280.     (message "\n" "\n"
  281.              "Achtung: Das hier ist eine Registrierte\n"
  282.              "Version Atapi PnP Package!\n"
  283.              "ES IST VERBOTEN IRGENDEINE DATEI\n"
  284.              "AUS DIESER DISKETTE ANDEREN\nZU LIEFERN" "\n"
  285.              "( Die Files haben Signs )\n" "\n" "\n"
  286.              "Atapi Plug'n Play is Copyright by \n"
  287.              "Georg Campana & Marco Campinoti ©1994"
  288.              (help "Um Freunde zu registrieren rufe : ++39/565/850621 an" )
  289.     )
  290.  
  291. )
  292.  
  293.  
  294. ; ****************************
  295. ; ****************************
  296. ;
  297.  
  298. (set DirPath "SYS:")
  299.  
  300. (setDirPath)
  301.  
  302. (set @default-dest DirPath)
  303.  
  304. (set devdest  (tackon @default-dest "Devs"))
  305. (set fsdest   (tackon @default-dest "L"))
  306. (set utildest (tackon @default-dest "Utilities"))
  307.  
  308.  
  309. (setPkgOpts)
  310.  
  311. (set DefaultIcon 0)
  312.  
  313. (if (= (exists (tackon fsdest "AmiCDFileSystem")) 1)
  314.     (set DefaultIcon 1)
  315. )
  316.  
  317. (if (= (exists (tackon fsdest "cdrom-handler")) 1)
  318.     (set DefaultIcon 2)
  319. )
  320.  
  321. (if (= (exists (tackon fsdest "CDFileSystem")) 1)
  322.     (set DefaultIcon 3)
  323. )
  324.  
  325. (if (IN PkgOpts 1)
  326.     (set DefaultIcon 4)
  327. )
  328.  
  329. (AskFsIcon)
  330.  
  331. (select IconChoose
  332.    (set FsName 0)
  333.    (set FsName "AmiCDFS")
  334.    (set FsName "AmiCDHandler")
  335.    (set FsName "CbmCDFS")
  336.    (set FsName "CDplusplusFS")
  337. )
  338.  
  339.  
  340. (set AutoMount 1)
  341. (set DevName "CD0")
  342.  
  343. (if (> @user-level 1)
  344.  
  345.     (if (<> IconChoose 0)
  346.         (
  347.          (GetDevName)
  348.          (AskAutoMount)
  349.         )
  350.     )
  351. )
  352.  
  353. (if (= AutoMount 1)
  354.     (set Icondest  (tackon @default-dest "Devs"))
  355.     (set Icondest  (tackon @default-dest "Storage"))
  356. )
  357.  
  358.  
  359.  
  360.  
  361.  
  362. (if (IN PkgOpts 0)
  363.     (set MemSpace (+ MemSpace 16000))
  364. )
  365. (if (IN PkgOpts 1)
  366.     (set MemSpace (+ MemSpace 23000))
  367. )
  368. (if (IN PkgOpts 2)
  369.     (set MemSpace (+ MemSpace  9000))
  370. )
  371. (if (IN PkgOpts 3)
  372.     (set MemSpace (+ MemSpace 30000))
  373. )
  374. (if (IN PkgOpts 4)
  375.     (set MemSpace (+ MemSpace 14000))
  376. )
  377. (if (<> IconChoose )
  378.     (set MemSpace (+ MemSpace 1000))
  379. )
  380.  
  381. (if (< (getdiskspace DirPath) MemSpace)
  382.     (if(> (getdiskspace DirPath) 0)
  383.        (
  384.           (abort "ACHTUNG: Der übrige Speicherplatz\n"
  385.                  ("auf der Platte %s\n" DirPath)
  386.                  ("beträgt nur um %ld bytes\n" (getdiskspace DirPath) )
  387.                  ("und es werden mindestens %ld benötigt\n" MemSpace)
  388.                  "\n"
  389.                  "Du kannst nochmal auf Install klicken\n"
  390.                  "und weniger Utilities aussuchen , oder\n"
  391.                  "unnötige Files von der Ziel-Platte\n"
  392.                  ("%s löschen\n" DirPath)
  393.           )
  394.        )
  395.     )
  396. )
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411. ; if bit position 0 is on  Installa device
  412. (if (IN PkgOpts 0)
  413.      (
  414.  
  415.         
  416.         (if (< (exists devdest (noreq)) 2)
  417.  
  418.             (makedir devdest
  419.                (prompt "Neues Verzeichnis -Devs-")
  420.                (infos)
  421.             )
  422.         )
  423.  
  424.  
  425.         (copylib
  426.             (prompt "Installiere Device Driver")
  427.             (source (tackon Disk1Name "devs/cd.device"))
  428.             (dest devdest)
  429.             (optional force)
  430.         )
  431.         
  432.  
  433.      )
  434. )
  435. ; if bit position 1 is on Installa FileSystem
  436. (if (IN PkgOpts 1)
  437.      (
  438.  
  439.         
  440.         (if (< (exists fsdest (noreq)) 2)
  441.  
  442.             (makedir fsdest
  443.                (prompt "Neues Verzeichnis -L-")
  444.             )
  445.         )
  446.  
  447.  
  448.         (copylib
  449.             (prompt "Installiere FileSystem von CD++")
  450.             (source (tackon Disk1Name "l/CDplusplusFS"))
  451.             (dest fsdest)
  452.             (optional force)
  453.         )
  454.         
  455.  
  456.      )
  457. )
  458.  
  459. ; if bit position 2 is on Installa MAP
  460. (if (IN PkgOpts 2)
  461.      (
  462.  
  463.         
  464.         (if (< (exists utildest (noreq)) 2)
  465.  
  466.             (makedir utildest
  467.                (prompt "Neues Verzeichnis -Utilities-")
  468.                (infos)
  469.             )
  470.         )
  471.  
  472.  
  473.         (copyfiles
  474.             (prompt "Installiere Mini Atapi Player")
  475.             (source (tackon Disk1Name "utilities/MAP"))
  476.             (dest utildest)
  477.             (infos)
  478.             (optional force)
  479.         )
  480.         
  481.  
  482.      )
  483. )
  484.  
  485. ; if bit position 3 is on Installa TRKDownLoad
  486. (if (IN PkgOpts 3)
  487.      (
  488.  
  489.         
  490.         (if (< (exists utildest (noreq)) 2)
  491.  
  492.             (makedir utildest
  493.                (prompt "Neues Verzeichnis -Utilities-")
  494.                (infos)
  495.             )
  496.         )
  497.  
  498.  
  499.         (copyfiles
  500.             (prompt "Installiere TrkDownLoader")
  501.             (source (tackon Disk1Name "utilities/TRKDownLoad"))
  502.             (dest utildest)
  503.             (infos)
  504.             (optional force)
  505.         )
  506.         
  507.  
  508.      )
  509. )
  510.  
  511. ; if bit position 4 is on Installa PlayCDXL
  512. (if (<> DemoVersion 1)
  513.    (if (IN PkgOpts 4)
  514.         (
  515.  
  516.            
  517.            (if (< (exists utildest (noreq)) 2)
  518.  
  519.                (makedir utildest
  520.                   (prompt "Neues Verzeichnis -Utilities-")
  521.                   (infos)
  522.                )
  523.            )
  524.  
  525.  
  526.            (copyfiles
  527.                (prompt "Installiere PlayCDXL")
  528.                (source (tackon Disk1Name "utilities/PlayCDXL"))
  529.                (dest utildest)
  530.                (infos)
  531.                (optional force)
  532.            )
  533.            
  534.  
  535.         )
  536.    )
  537. )
  538. (if (> IconChoose 0)
  539.     (
  540.         (if (< (exists Icondest (noreq)) 2)
  541.  
  542.             (makedir Icondest
  543.                (prompt "Neues Verzeichnis Devs oder Storage")
  544.                (infos)
  545.             )
  546.         )
  547.  
  548.         (set Icondest  (tackon Icondest "Dosdrivers"))
  549.          
  550.         (copyfiles
  551.             (prompt "Installiere Device-Piktogram")
  552.             (source (tackon Disk1Name (tackon "Devs/Storage" FsName)))
  553.             (dest IconDest)
  554.             (newname  DevName)
  555.             (infos)
  556.             (optional force)
  557.         )
  558.  
  559.     
  560.         (if (= AutoMount 1)
  561.             ( message "\n" "\n"
  562.                    "Bei jedem starten des Computers wird\n"
  563.                    "das CD-Laufwerk automatisch ins System\n"
  564.                    "eingebindet !\n"
  565.                    "\n"
  566.                    "Du kannst dieses Verhalten jederzeit verändern\n"
  567.                    ("indem Du das Piktogram %s vom Verzeichnis" DevName)
  568.                    "Devs/Dosdrivers ins Verzeichnis Storage/Dosdrivers\n"
  569.                    "verschiebst\n"
  570.             )
  571.             ( message "\n" "\n"
  572.                    "Du kannst jederzeit das CD-ROM Laufwerk einbinden \n"
  573.                    ("indem du zweimal auf %s\n" DevName)
  574.                    "im Verzeichnis Storage/Dosdrivers klickst\n"
  575.                    "Soll es automatisch eigebunden werden, dann\n"
  576.                    "verschieb das Piktogram ins Verzeichnis Devs/Dosdrivers"
  577.             )
  578.         )
  579.     )
  580.     ( message "\n" "\n"
  581.            "Es wurde kein Piktogram für das\n"
  582.            "CD-ROM Laufwerk ausgesucht .\n"
  583.            "Du mußt es Dir deshalb selber bauen!\n"
  584.            "\n"
  585.            "Du kannst auch nocheinmal auf -Install- klicken\n"
  586.            "und Dir ein CD-Filesystem aussuchen\n"
  587.     )
  588.  
  589. )
  590.  
  591. (exit)
  592. ;///
  593.